<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" readonly class="form-control" type="text" value="{$row.name|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('User_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[user_id]', $usernameList, $row['user_id'], ['class'=>'form-control selectpicker',"id" => "c-user_id",'disabled'=>'disabled', 'required'=>'required'])}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sn')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sn" readonly class="form-control" type="text" value="{$row.sn|htmlentities}">

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Category_id')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_select('row[category_id]', $categoryNameList, $row['category_id'], ['class'=>'form-control selectpicker',"id" => "c-category_id",'disabled'=>'disabled', 'required'=>'required'])}
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_account')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.is_account == 1}
            <input id="c-is_account" readonly class="form-control" type="text" value="已认证">
            {elseif condition="$row.is_account eq 2"/}
            <input id="c-is_account" readonly class="form-control" type="text" value="已驳回">
            {else /}
            <input id="c-is_account" readonly class="form-control" type="text" value="未认证">
            {/if}

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Account_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-account_time" readonly class="form-control" type="text"
                   value="{$row.account_time|htmlentities}">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_authority')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.is_authority == 1}
            <input id="c-is_authority" readonly class="form-control" type="text" value="已认证">
            {elseif condition="$row.is_authority eq 2"/}
            <input id="c-is_authority" readonly class="form-control" type="text" value="已驳回">
            {else /}
            {:build_radios('row[is_authority]', ['1'=>__('Certified'),'2'=>__('Status rejected'),
            '0'=>__('Not_certified')], $row['is_authority'])}
            {/if}

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Authority_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-authority_time" readonly class="form-control" name="row[authority_time]" type="text"
                   value="{$row.authority_time|htmlentities}">
        </div>
    </div>


    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Product_review')}:</label>
        <div class="col-xs-12 col-sm-8">
            {if $row.product_review == 1}
            <input id="c-product_review" readonly class="form-control" name="row[product_review]" type="text"
                   value="已审核">
            {elseif condition="$row.product_review eq 2"/}
            <input id="c-product_review" readonly class="form-control" name="row[product_review]" type="text"
                   value="已驳回">
            {else /}
            <input id="c-product_review" readonly class="form-control" name="row[product_review]" type="text"
                   value="未审核">
            {/if}
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Review_time')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-review_time" readonly class="form-control" name="row[review_time]" type="text"
                   value="{$row.review_time|htmlentities}">
        </div>
    </div>


    {if $row.product_review == 1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['0'=>__('Hidden'), '1'=>__('Normal')],$row['status'])}
        </div>
    </div>
    <div class="form-group" data-favisible="status=0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Down_reason')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-down_reason" name="row[down_reason]" class="form-control" type="text"
                   value="{$row.down_reason|htmlentities}">
        </div>
    </div>
    {else /}

    {/if}


    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            {if $row.is_authority == 0}
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>

            {else/}
            <button type="reset" class="btn btn-primary btn-embossed btn-close" onclick="Layer.closeAll();">
                {:__('Close')}
            </button>


            {/if}
        </div>
    </div>
</form>
